package com.huimingpay.merchant.convert;

import com.huimingpay.merchant.dto.AppDTO;
import com.huimingpay.merchant.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName:AppConvert
 * Package:com.huimingpay.merchant.convert
 * Time: 2024/7/23
 */
@Mapper
public interface AppConvert {
    AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

    AppDTO EntityToDTO(App app);

    App DTOToEntity(AppDTO appDTO);

    List<App> DTOListToEntityList(List<AppDTO> appDTOS);

    List<AppDTO> EntityListToDTOList(List<App> apps);
}
